<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	function setValue(key,value){
		$("#power_parent_id").val(key);
		$("#power_parent_name").val(value);
	}
</script>
</head>
<body>
	<table width="100%" border="0">
		<tr>
			<td colspan="5">
				<b>选择父类</b>
			</td>
		</tr>
		<tr><td colspan="5"><input type="radio" name="power"   onclick="javaScript:setValue('0','顶级权限')">顶级权限</td></tr>
		<tr>
			<s:iterator value="powerList" var="_parent" status="loop">
			<td>
				<input type="radio" name="power"  onclick="javaScript:setValue('${_parent.id}','${_parent.name}')">${_parent.name}
			</td>
				<s:if test="#loop.count%5==0"></tr><tr></s:if>
			</s:iterator>
		</tr>
		<tr>
			<td colspan="5" align="center">
				<input type="button" onclick=" $.closePopupLayer();" value="确定">
			</td>
		</tr>
	</table>
</body>
</html>